package com.kongjs.application.model.vo;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class PageQueryVO {
    @Min(message = "页码错误", value = 1)
    @Max(message = "页码错误", value = 1000)
    @NotNull(message = "页码为空")
    private Long pageNum;
    @Min(message = "页数错误", value = 1)
    @Max(message = "页数错误", value = 1000)
    @NotNull(message = "页数为空")
    private Long pageSize;
}
